﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using wlog.Model;

namespace wlog.Shell.Storage.Blob
{
    public class BlobOptionsCommand : BlobStorageCommand
    {
        public override void Setup(string[] args)
        {
            base.Setup(args);
            base.CreateTask(() => { RunCommand(); });
        }
        public OutputChannel RunCommand()
        {
            try
            {
                //string otype = objectName;
                //Assembly hosted = Assembly.GetExecutingAssembly();
                //string baseFullName = (typeof(BlobServiceEntity)).FullName;
                //Type[] BlobTypes = (from a in hosted.GetTypes()
                //                     where a.BaseType != null
                //                     select a).ToArray();
                //Results.WriteLine("================================================================================");

                //foreach (var type in BlobTypes)
                //{
                //    if (string.Compare(type.BaseType.FullName, baseFullName, true) == 0)
                //    {
                //        Results.WriteKeyPair(type.Name, type.Namespace, 10);
                //    }
                //}
            }
            catch (Exception azureEx)
            {
                Results.WriteLine("Error ccreating Blob {0} ", azureEx.Message);
            }
            return Results;
        }

    }
}
